//
//  WBDiscoverSearchView.swift
//  0829-Weibo
//
//  Created by 毕仲阳 on 16/8/29.
//  Copyright © 2016年 mycompany. All rights reserved.
//

import UIKit

@IBDesignable class WBDiscoverSearchView: UIButton {

   class func searchView()-> WBDiscoverSearchView
    {
        let view = Bundle.main.loadNibNamed("WBDiscoverSearchView", owner: nil, options: nil)!.last! as! WBDiscoverSearchView
        return view
    }
    
    override func awakeFromNib() {
        self.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 0, -10)
        self.titleEdgeInsets = UIEdgeInsetsMake(0, 20, -10, 0)
    }
}
